//
//  MSUserHomeVC.m
//  MS
//
//  Created by Yuan on 13-2-27.
//  Copyright (c) 2013年 He Yuan. All rights reserved.
//

#import "MSUserHomeVC.h"

#import "MSUserHomePageTopView.h"

@interface MSUserHomeVC ()<UIScrollViewDelegate>
{
    NSString *userName;
    
    UIScrollView *scrollView;
    
    MSUserHomePageTopView *topView;
}
@property(nonatomic,retain)NSString *userName;

@property(nonatomic,retain) UIScrollView *scrollView;

@property(nonatomic,retain) MSUserHomePageTopView *topView;

@end

@implementation MSUserHomeVC
@synthesize userName;
@synthesize scrollView;
@synthesize topView;

- (id)initWithUID:(NSNumber *)uid userName:(NSString *)un
{
    self = [super init];
    if (self)
    {
        self.userName = un;
    }
    return self;
}

-(void)loadView
{
    [super loadView];
    
    scrollView = [[UIScrollView alloc]initWithFrame:self.view.bounds];
    scrollView.autoresizingMask = UIViewAutoresizingFlexibleHeight;
    scrollView.delegate = self;
    scrollView.contentSize = self.view.bounds.size;
    [self.view addSubview:self.scrollView];
    
    topView  = [[MSUserHomePageTopView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 100)];
    [self.scrollView addSubview:self.topView];
    
    
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.

    [self setTitle:self.userName showBackButton:YES];

}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
